<?php
/**
* @file SystemMessage.php
* Copyright (c) Friends Group. All rights reserved.
* $Id$
*
*/

require_once(realpath(dirname(__FILE__)) . '/../classes/BaseObject.php');

class SystemMessage extends BaseObject 
{

    /**
     * @AttributeType int
     */
    protected $ID;

    /**
     * @AttributeType String
     */
    protected $messages;

    /**
     * @AttributeType String
     */
    protected $messageType;
    
    /**
     * @AttributeType Timestamp
     */
    protected $postTime;

    /**
     * @AttributeType int
     */
    protected $accountID;

    public function __construct($accountID = "", $messages = "", $messageType = "", $postTime = null)
    {
        $this -> accountID = $accountID;
        $this -> messages = $messages;
        $this -> messageType = $messageType;
        if($postTime == null)
            $this -> postTime = date("Y-m-d H:i:s");
        else
            $this -> postTime = $postTime;
    }
    
    /**
     * @ParamType iD int
     */
    public function setID($ID) 
    {
        $this->ID = $ID;
    }

    /**
     * @ReturnType int
     */
    public function getID() 
    {
        return $this->ID;
    }

    /**
     * @ParamType messages String
     */
    public function setMessages($messages) 
    {
        $this->messages = $messages;
    }

    /**
     * @ReturnType String
     */
    public function getMessages() 
    {
        return $this->messages;
    }

    /**
     * @ParamType messages String
     */
    public function setMessageType($messageType) 
    {
        $this->messageType = $messageType;
    }

    /**
     * @ReturnType String
     */
    public function getMessageType() 
    {
        return $this->messageType;
    }
    
    /**
     * @ParamType postTime Timestamp
     */
    public function setPostTime($postTime) 
    {
        $this->postTime = $postTime;
    }

    /**
     * @ReturnType Timestamp
     */
    public function getPostTime() 
    {
        return $this->postTime;
    }

    /**
     * @ParamType accountID int
     */
    public function setAccountID($accountID) 
    {
        $this->accountID = $accountID;
    }

    /**
     * @ReturnType int
     */
    public function getAccountID() 
    {
        return $this->accountID;
    }
}
?>